import {createBrowserRouter, Navigate} from 'react-router-dom'
import { lazy } from 'react'

// import Login from '../pages/login/Index'
// import Home from '../pages/home/Index'

let Login = lazy(()=>import('../pages/login/Index'))
let Home = lazy(()=>import('../pages/home/Index'))

let router = createBrowserRouter([
    
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/home',
        element:<Home></Home>
    }

])
export default router